#!/bin/sh
rm report.txt
rm metrics.txt
cd panberry.reports
rm *.txt
git reset --hard
git pull
databegin=`/bin/date --date='-14 day' '+%d.%m.%Y'`
dataend=`/bin/date '+%d.%m.%Y'`



#последние 2 недели human_resource & progress

./report.pl --report progress --output ../report.txt --start=$databegin --end=$dataend --group=panberry
./report.pl --report human_resources --output report2.txt --start=$databegin --end=$dataend --group=panberry


cat report2.txt >> ../report.txt
rm report2.txt

#human_resource за все время
./report.pl --report progress --output ../metrics.txt --start=12.02.2013 --end=$dataend --group=panberry




